package src.cl.movix.repositories.dao;

public class PropertyNotFoundException extends Exception {

	private static final long serialVersionUID = -5321985266032163972L;

	/** The property's name that was not found */
	private String name;

	/**
	 * This constructor sets the name of the property that was not found.
	 * 
	 * @param name
	 *            The property's name.
	 */
	public PropertyNotFoundException(String name) {
		super();

		this.name = name;
	}

	@Override
	public String getMessage() {
		return "The property with name " + this.name
				+ " was not found in the repository.";
	}

}
